package com.qf.service.impl;

import com.qf.dao.RecipeDao;
import com.qf.pojo.Recipe;
import com.qf.service.RecipeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RecipeServiceImpl implements RecipeService {
    @Autowired
    private RecipeDao recipeDao;
    @Override
    public List<Recipe> select(Recipe recipe) {
        return recipeDao.select(recipe);
    }

    @Override
    public int insert(Recipe recipe) {
        return recipeDao.insert(recipe);
    }

    @Override
    public int update(Recipe recipe) {
        return recipeDao.update(recipe);
    }

    @Override
    public int delete(List<Integer> list) {
        return recipeDao.delete(list);
    }
}
